package com.wgj.android.http.weixin.model;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/10/19.
 */
public class SendResult implements Serializable {
    private String FromUserName;
    private String Status;
    private String NickName;
    private String Clazz;
    public String getClazz() {
        return Clazz;
    }
    public void setClazz(String clazz) {
        Clazz = clazz;
    }

    public String getNickName() {
        return NickName;
    }
    public void setNickName(String nickName) {
        NickName = nickName;
    }
    public String getFromUserName() {
        return FromUserName;
    }
    public void setFromUserName(String fromUserName) {
        FromUserName = fromUserName;
    }
    public String getStatus() {
        return Status;
    }
    public void setStatus(String status) {
        Status = status;
    }

    @Override
    public String toString() {
        return "SendResult{" +
                "FromUserName='" + FromUserName + '\'' +
                ", Status='" + Status + '\'' +
                ", NickName='" + NickName + '\'' +
                ", clazz='" + Clazz + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;

        SendResult that = (SendResult) object;

        if (getFromUserName() != null ? !getFromUserName().equals(that.getFromUserName()) : that.getFromUserName() != null)
            return false;
        if (getStatus() != null ? !getStatus().equals(that.getStatus()) : that.getStatus() != null) return false;
        return getClazz() != null ? getClazz().equals(that.getClazz()) : that.getClazz() == null;
    }

    @Override
    public int hashCode() {
        int result = getFromUserName() != null ? getFromUserName().hashCode() : 0;
        result = 31 * result + (getStatus() != null ? getStatus().hashCode() : 0);
        result = 31 * result + (getClazz() != null ? getClazz().hashCode() : 0);
        return result;
    }
}
